#! /bin/bash
touch testing 
find / -perm +6000 >testing 2>/dev/null
cat testing
while [ 1 ]
do
	echo "please input filename,if you don't cut ,please input 0"
	read file
	if [ $file ==0 ]
	then
		echo "don't cut"
		break
	else
		grep $file testing 
		s= `$?`
		if [ $s == 0 ]
		then
			chmod u-s $file
			chmod u-g $file
		else
			echo "input is error! please input again"
			continue
		fi
	fi
done
